package com.hsmpay.mobile.service.user;

import com.hsmpay.common.pojo.user.User;
import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.user.UserDPI;

import java.io.Serializable;

/**
 * 用户实名认证 userDPIService
 *
 * @param <Entity>
 * @param <Query>
 * @author 颜铃璋
 *         建立时间：2013-2-25
 */
public interface UserDPIService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {
    /**
     * 实名认证
     *
     * @param userDPI
     * @param user
     * @return
     * @throws Exception
     */
    public int userDPI(UserDPI userDPI, User user) throws Exception;

    /**
     * 查询最后一次实名认证 失败的信息
     *
     * @param terminalTypeId
     * @param roleId
     * @param userId
     * @return
     * @throws Exception
     */
    public UserDPI searchLatestUserDPIError(Long terminalTypeId, Long roleId, Long userId) throws Exception;
}
